package com.ly;

/**
 * @author LY
 * @date 2021年04月26日 14:17
 * @project test
 */
public class SplitTest {
    public static void main(String[] args) {
        String s = "cout";
        String[] split = s.split("-");
        System.out.println(split.length);
        System.out.println(split[split.length-1]);
    }
}
